package com.maxd.error;

public enum ExceptionEnum implements IRetCode {
    UNKNOW_ERROR(-1, "未知错误"),
    LIMIT_USER(-100, "当前账户受限制请联系管理员"),
    USER_NOT_FIND(-101, "用户未注册"),
    USER_IS_BIND_FOR_ANTHER_OPENID(-99, "当前手机号已经被其他微信绑定"),
    WRONT_TOKEN(-102, "用户信息失效，请重新登录"),
    USER_PWD_EMPTY(-103, "用户名密码不能为空"),
    USER_PWD_ERROR(-104, "用户名或密码错误"),
    USER_IS_EXITS(-105, "手机号已经注册!"),
    ERROR(-106, "服务器内部错误"),
    UPDATE_PWD_ERROR(-107, "密码修改失败"),
    STATE_PWD_ERROR(-108, "状态修改失败"),
    DATA_EMPTY(-109, "添加数据不能为空"),
    Return_ATA_EMPTY(-110, "暂无数据"),
    ADD_ERROR(-111, "提现失败"),
    CODE_ERROR(-112, "验证码不正确"),
    BIND_ERROR(-113, "手机号已经被其他账号绑定"),
    SEND_ERROR(-114, "验证码发送失败"),
    USER_PHONE_ERROR(-115, "用户名不能为空"),
    OLD_PWD_ERROR(-116, "原始密码错误"),
    IS_REGISTER(-117, "当前手机号已经绑定其他微信账号"),
    IS_BIND(-118, "当前淘宝账号已经绑定其他手机号"),
    IS_BIND_RELATION(-119, "当前账号已经绑定其他淘宝账号"),
    OLD_NOT_SAME_NEW_PWD_ERROR(-120, "新密码不能等于和原始密码一致"),
    USER_IS_REGISTER(-121, "用户已经注册请前往登录"),
    RELATIONID_IS_REGISTER(-122, "淘宝账号已经授权绑定其他手机号"),
    CODE_NOT_FOUND(-123, "邀请码不存在"),
    COMMON_IS_EXITS(-124, "已经存在"),
    COUPONS_ZERO(-125, "优惠券被领完了"),
    COUPONS_GET_OUT(-126, "优惠券超过领取次数"),
    COUPONS_TIME_OUT(-127, "优惠券已过期"),
    GOODS_NOT_AVAILABLE(-128, "商品已被下架或移除，请选择其他商品！"),
    ORDER_PAYED(-129, "订单已经支付过了！"),
    GROUP_FINISHED(-130, "拼团已完成，无法参与！"),
    PAY_MONEY_ERROR(-131, "支付金额错误！"),
    PRE_PAY_ERROR(-132, "发起支付失败"),
    ORDER_NOF(-133, "订单不存在！"),

    ACTIVITY_NOF(-140, "活动不存在！"),
    ACTIVITY_EXPIRED(-141, "活动已结束！"),
    ACTIVITY_FULLED(-142, "活动人数已满！"),
    JOIN_RECORD_NOF(-143, "活动参与记录不存在！"),

    GEN_QR_CODE_ERROR(-150, "生成二维码失败！"),

    MEMBER_NOF(-155, "会员不存在！"),
    MEMBER_NOT_EFFECT(-156, "会员已下架！"),
    MEMBER_BUY_NOF(-157, "会员购买记录不存在！"),

    PAYED_OR_CANCELED(-160, "订单已经支付或已取消！"),

    PARTNER_EXISTS(-170, "请勿重复购买！"),

    INSTRUCTOR_NOF(-175, "教官不存在！"),
    ASSISTANT_NOF(-176, "小区主理人不存在！"),
    CLASS_NOF(-177, "班级不存在！"),
    STUDENT_NOF(-178, "学员不存在！"),
    ORDER_NOT_MATCH(-179, "订单不匹配！"),
    ORDER_USED(-180, "订单已使用！"),
    CLASS_STUDENT_EXISTS(-181, "班级学员已存在！"),
    PARTNER_NOF(-182, "合伙人不存在！"),

    SPECIFY_USER_BUY(-183, "商品只允许指定用户购买！"),
    PHONE_NOT_EXISTS(-184, "手机号未注册，请先注册！"),
    WAIT_PAY_ORDER_EXISTS(-185, "存在待支付的主理人订单，请先支付或取消！"),
    NOT_POINT_ORDER(-186, "非积分订单！"),
    POINT_NOT_ENOUGH(-187, "可用积分不足！"),
    LESSON_NOT_EXISTS(-188, "课程不存在！"),

    ADJUST_POINT_NE(-190, "调整后积分为负！"),

    DATA_CHANGED(-201, "信息异常，请退出重新操作！"),

    SERIALIZE_ERROR(-901, "序列化异常！"),
    DESERIALIZE_ERROR(-902, "反序列化异常！"),
    PARAM_ERROR(-903, "参数错误"),
    SEQ_LENGTH_ERROR(-904, "流水号长度错误"),
    PRIVILEGE_ERROR(-905, "权限控制拒绝！"),
    ;
    private Integer code;
    private String msg;
    ExceptionEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}

